const util = {
  // 设置 localStorage item
  setItem: (key, value) => {
    window.localStorage.setItem(key, JSON.stringify(value))
  },
  // 获取 localStorage item
  getItem: (key) => {
    return JSON.parse(window.localStorage.getItem(key))
  },
  // 删除 localStorage item
  removeItem: (key) => {
    window.localStorage.removeItem(key)
  }
}

export default util
